package Code.Day3_20240920.com.dx.day03;

import Code.Day2_20240919.com.dx.day02.Student;

import java.awt.*;
import java.util.Arrays;
import java.util.stream.IntStream;

/**
 * @ClassName Test03
 * @Description 继承、protected……
 * @Author 12994
 * @Date 2024/9/20 12:13
 * @Version 1.0
 **/

// 继承
public class Test03 extends Student {
    public Test03() {
        // 显式调用
        super();
        this.name = "测试03";
    }

    protected static int use(int a) {
        return a;
    }

    protected static IntStream use2(int a) {
        return Arrays.stream(new int[]{a});
    }

    public static void main(String[] args) {
        System.out.println(use2(6));
        System.out.println(use2(7));
    }
}
